<?php $this->fetch('public/head'); ?>
    <link rel="stylesheet" type="text/css" href="_css/bootstrap.min.css" media="all">
    <div class="row system" style="width:100%;">
        <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
            <table class="layui-table larry-table-info">
                <colgroup>
                    <col width="150">
                    <col>
                </colgroup>
                <tbody>
                <tr>
                    <td><span class="tit">申请人信息:</span></td>
                    <td><span class="info iframe"><?php echo $web['site_title'] ?></span></td>
                </tr>
                <tr>
                    <td><span class="tit">申请人:</span></td>
                    <td><?php echo $rows['username'] ?>(<?php echo $rows['sex'] ?>)</td>
                </tr>
                <tr>
                    <td><span class="tit">方案名称:</span></td>
                    <td><span class="info"><?php echo $rows['name'] ?></span></td>
                </tr>
                <tr>
                    <td><span class="tit">意向车型:</span></td>
                    <td> <?php echo $rows['yixiang'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">联系电话:</span></td>
                    <td><?php echo $rows['phone'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">购车时间:</span></td>
                    <td><?php echo $rows['time'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">地区:</span></td>
                    <td><?php echo $rows['city'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">申请人职业:</span></td>
                    <td><?php echo $rows['zhiye'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">收入:</span></td>
                    <td><?php echo $rows['yuegong'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">申请时间:</span></td>
                    <td><?php echo $rows['addtime'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">身份证号后四位:</span></td>
                    <td><?php echo $rows['cardid'] ?></td>
                </tr>
				<tr>
                    <td><span class="tit">购车需求:</span></td>
                    <td><?php echo $rows['need'] ?></td>
                </tr>
				 <tr>
                    <td><span class="tit">处理信息:</span></td>
                    <td></td>
                </tr>
                <tr>
                    <td><span class="tit">接收人:</span></td>
                    <td><?php echo $rows['offers']?></td>
                </tr>
                <tr>
                    <td><span class="tit">处理信息:</span></td>
                    <td><?php if($rows['offer']==''){ ?>
                            <form action="<?php echo url('detail') ?>" method="post">
                                输入确认人姓名：<input type="text" name="offer">
                                <input type="hidden" name="id" value="<?php echo $rows['id'] ?>">
                                <button class="layui-btn" lay-submit lay-filter="*">保存</button></br>
                            </form>
                        <?php }else{ ?>
                            处理人：<?php echo $rows['offer'] ?></br>
                            处理时间：<?php echo $rows['offertime'] ?></br>
                        <?php } ?></td>
                </tr>
                <tr>
                    <td><span class="tit">跟进记录:</span></td>

                </tr>
                <?php foreach($histo as $v){ ?>
                <tr>
                    <td><span class="tit"><?php echo $v['offer'] ?></span></td>
                    <td><?php echo $v['offerdate'].'</br>'.$v['content']?></td>
                </tr>
    <?php } ?>
                </tbody>
            </table>
        </div>
        <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
            <table class="layui-table larry-table-info">
                <colgroup>
                    <col width="150">
                    <col>
                </colgroup>
                <tbody>
                <tr>
                    <td><span class="tit">方案信息:</span></td>
                    <td></td>
                </tr>
                <tr>
                    <td><span class="tit">方案名称:</span></td>
                    <td> <?php echo $rows['name'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">指导价:</span></td>
                    <td><?php echo $rows['zhidaojia'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">提车价:</span></td>
                    <td><?php echo $rows['tichejia'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">租期:</span></td>
                    <td><?php echo $rows['zuqi'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">月供:</span></td>
                    <td><?php echo $rows['pyuegong'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">购置税:</span></td>
                    <td><?php echo $rows['gouzhishui']?></td>
                </tr>

                <tr>
                    <td><span class="tit">保险:</span></td>
                    <td><?php echo $rows['baoxian'] ?></td>
                </tr>
                <tr>
                    <td><span class="tit">详情:</span></td>
                    <td><?php echo $rows['content'] ?></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

<?php $this->fetch('public/script'); ?>